<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
<body> 
<ui:composition>
	<ul id="mjestaLinkPanel" class="menu clearfix">
		<li class="first">
			<f:subview rendered="#{param.idTipaObjekta != null}">
			<h:outputLink
					value="#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{mjestoDetails.idMjesta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(mjestoDetails)}"/>
				<h:outputText value="#{messages['label.overview']}" />
			</h:outputLink>
			</f:subview>
			<f:subview rendered="#{param.idTipaObjekta == null}">
				<h:outputText value="#{messages['label.overview']}" />
			</f:subview>
			</li>
			<ui:repeat value="#{tipoviObjekataByMjesto}" var="to">
				<li>
				<f:subview rendered="#{param.idTipaObjekta != to.idTipaObjekta}">
					<h:outputLink value="#{application.contextPath}/guides/mjesta/objekti.seam">
										<f:param name="idMjesta" value="#{mjestoDetails.idMjesta}"/>
										<f:param name="idTipaObjekta" value="#{to.idTipaObjekta}"/>
										<f:param name="l" value="#{currentLang}"/>
										<f:param name="title" value="#{titleAction.getUrlTitle(mjestoDetails,to.idTipaObjekta)}"/>
						<h:outputText
							value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
					</h:outputLink>
				</f:subview>
				<f:subview rendered="#{param.idTipaObjekta == to.idTipaObjekta}">
					<h:outputText
						value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
				</f:subview>
				</li>
			</ui:repeat>
		</ul>
</ui:composition>
</body>
</html>
